package com.jun.admin.core.model;


import com.jun.admin.core.model.aspect.Desensitization;
import com.jun.admin.core.model.enums.DesensitizationEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
* @author yuejun.li
* @since 2024-06-13
*/
@Data
@Accessors(chain = true)
@Table(name = "jun_teacher")
@ApiModel(value = "JunTeacher对象", description = "")
public class JunTeacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @Id
    private Integer id;

    @ApiModelProperty("教师名")
    @Column(name = "teacher_name")
    @Desensitization(DesensitizationEnum.NAME)
    private String teacherName;

    @ApiModelProperty("年龄")
    @Column(name = "age")
    private Integer age;


    public static final String ID = "id";

    public static final String TEACHER_NAME = "teacherName";

    public static final String AGE = "age";
}
